package com.twt.survey2025spring.utils.response;

public enum CodeEnum implements BaseResponseInfo{

    SUCCESS("200", "填写成功！"),

    FAILED("-1", "填写失败！"),

    UNFINISHED_STATUS("400", "尚未完成填写！"),

    DATA_TOO_LONG("401", "填写字数超长"),

    TOKEN_IS_EXPIRATION("501", "token已过期"),
    TOKEN_IS_NULL("502", "token为空");


    private final String code;

    private final String message;

    CodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getResultCode() {
        return this.code;
    }

    @Override
    public String getResultMsg() {
        return this.message;
    }
}
